﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CreateCourse.aspx.cs" Inherits="ViewListCourse" MasterPageFile="../MasterPage.master" %>
                       
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!-- 
        put your code here
        -->
    <div class="panel panel-default">
        <!-- Default panel contents -->
        <div class="panel-heading">
            <h1>Add new course</h1>
        </div>
        <div class="panel-body">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="select * from courses"></asp:SqlDataSource>
            <div class="col-md-3"></div>
            <div class="col-md-6 new-course">
                <p>Course name</p>
                <p>
                    <asp:TextBox ID="TextBox1" runat="server" CssClass="form-control"></asp:TextBox>
                </p>
                <p>Tearcher</p>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="select id, name from users where role_id=1"></asp:SqlDataSource>
                <p>
                    <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource2" DataTextField="name" DataValueField="id" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" CssClass="form-control">
                    </asp:DropDownList>
                </p>
                <p>
                    Cost
                </p>
                <p>
                    <asp:TextBox ID="TextBox3" runat="server" CssClass="form-control"></asp:TextBox>
                </p>
                <p>Start date</p>
                <p class="dateInput">
                    <asp:TextBox ID="TextBox4" runat="server" CssClass="form-control"></asp:TextBox>
                </p>
                <p align="center">
                    <asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click" CssClass="btn btn-warning" />
                    &nbsp;
                <asp:Button ID="Button2" runat="server" Text="Cancel" CssClass="btn"/>
                </p>
            </div>
            <div class="col-md-3"></div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content1" runat="server" contentplaceholderid="head">
    <style type="text/css">
        .auto-style1 {
        }
        .auto-style3 {
            width: 85%;
        }
        .auto-style5 {
            width: 4px;
        }
    </style>
</asp:Content>

